/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package commonpackage;

/**
 *
 * @author chuda
 */
public class Eating extends POI{
    private double min_price;
    private double max_price;
    private double avg_price;
    private int accomodation;
    public Eating(){
        
    }
    public Eating (String type,String name, String descr,String address, String telephone, boolean order, Position pos, double min_price, double max_price,
            double avg_price, int accomodation) {
        super(type, name, descr, address,telephone, order, pos);
        this.accomodation = accomodation;
        this.max_price = max_price;
        this.min_price = min_price;
    }

    /**
     * @return the min_price
     */
    public double getMin_price() {
        return min_price;
    }

    /**
     * @param min_price the min_price to set
     */
    public void setMin_price(double min_price) {
        this.min_price = min_price;
    }

    /**
     * @return the max_price
     */
    public double getMax_price() {
        return max_price;
    }

    /**
     * @param max_price the max_price to set
     */
    public void setMax_price(double max_price) {
        this.max_price = max_price;
    }

    /**
     * @return the avg_price
     */
    public double getAvg_price() {
        return avg_price;
    }

    /**
     * @param avg_price the avg_price to set
     */
    public void setAvg_price(double avg_price) {
        this.avg_price = avg_price;
    }

    /**
     * @return the accomodation
     */
    public int getAccomodation() {
        return accomodation;
    }

    /**
     * @param accomodation the accomodation to set
     */
    public void setAccomodation(int accomodation) {
        this.accomodation = accomodation;
    }

    public String toString(){
    //(String type,String descr,String address, String telephone, boolean order, Position pos, double min_price, double max_price,
            //double avg_price, int accomodation
        /*
         this.accomodation = accomodation;
        this.max_price = max_price;
        this.min_price = min_price;
         */
    String ret = this.accomodation + "#" + this.max_price + "#" + this.min_price + "#" + this.avg_price;
    return ret;
    }

}
